package cz.mendelu.swi2.documents.model;

import java.sql.Date;

import cz.mendelu.swi2.documents.model.states.IVersionState;

import cz.mendelu.swi2.documents.model.versionImplementations.IVersionImplementation;


/**
 * Document history version 
 * 
 * @author Jakub Skrha, xskrha
 */
public class Version
{

	private int id;
	
	private IVersionImplementation implementation;
	
	private Date modifiedTime;
	
	private Date createdTime;
	
	private String name;
	
	private IVersionState state;


	

	

	
	public Version(int id, IVersionImplementation implementation,
			Date modifiedTime, Date createdTime, String name,
			IVersionState state) {
		super();
		this.id = id;
		this.implementation = implementation;
		this.modifiedTime = modifiedTime;
		this.createdTime = createdTime;
		this.name = name;
		this.state = state;
	}

	
	///////////////////////////////////////
	// Getters and setters
	///////////////////////////////////////
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	
	public IVersionImplementation getImplementation() {
		return implementation;
	}

	public void setImplementation(IVersionImplementation implementation) {
		this.implementation = implementation;
	}

	public Date getModifiedTime() {
		return modifiedTime;
	}

	public void setModifiedTime(Date modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public IVersionState getState() {
		return state;
	}

	public void setState(IVersionState state) {
		this.state = state;
	}

		
}